package com.yzd.learnjava.strings;

import com.yzd.learnjava.util.Print;

public class IntegerMatcher {
	public static void main(String[] args) {
		Print.print("-1234".matches("-?\\d+"));
		Print.print("5678".matches("-?\\d+"));
		Print.print("+911".matches("-?\\d+"));
		Print.print("+911".matches("(-|\\+)?\\d+"));
	}
}
